package code

import "fmt"

func Funct3() {
	swap2(5, 5.1, 5.2, 5.3)
}

func swap2(x int, arr ...float64) {
	fmt.Println(x, arr)
}

func Funct4() {
	x := 10
	y := 20
	changeValue(x, y)
	fmt.Println(x, y)
	changeValuePoint(&x, &y)
	fmt.Println(x, y)
}

func changeValue(x, y int) {
	x = 50
	y = 100
}

func changeValuePoint(x, y *int) {
	*x = 50
	*y = 100
}

func Funct5() {
	a, b, info := yes(10, 20)
	fmt.Println(a, b, info)
}

func yes(x, y int) (a int, b int, info string) {
	a = x
	b = y
	info = "hello"
	return
}
